<template>
    <div >
        <div class="grade">
            <div class="grade-item" :style="{color:index ==activeIndex?'#fff':'#a0d4ee',fontSize:index ==activeIndex?'48px':'38px'}" v-for="(item,index) in grade" :key="item.value" @click="activeIndex =index">{{ item.label }}</div>
        </div>
        <img class="left-bottom" src="@/assets/images/examination-left-bottom.png" />
       
    </div>
</template>
 
<script setup >
import { ref, computed, onMounted, watch } from "vue";
import { useRoute, useRouter } from "vue-router";
const { proxy } = getCurrentInstance();
const route = useRoute();
const router = useRouter();
const grade = ref([{ label: "一年级", value: 1 }, { label: "二年级", value: 2 }, { label: "三年级", value: 3 }, { label: "四年级", value: 4 }, { label: "五年级", value: 5 }, { label: "六年级", value: 6 }]);
const activeIndex = ref(0);
let tabsType;
function handleClick(index) {
    if (list.value[index]['active']) {
        list.value[index]['active'] = false;
    } else {
        list.value[index]['active'] = true;
    }
}


</script>

<style scoped lang="scss">


.left-bottom {
    position: absolute;
    left: 38px;
    bottom: 40px;
    width: 235px;
    height: 262px;
}
.content {
    margin-left: 70px;
    width: 1580px;
    height: 850px;
    background: #a0d4ee;
    border-radius: 24px;
    padding: 20px;
    background: linear-gradient(
        244deg,
        rgba(24, 104, 130, 0.12) 0%,
        rgba(37, 40, 104, 0.12) 99%
    );
    overflow: hidden;
    &-body {
        margin-top: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        height: 730px;
        overflow-y: auto;
        &-active {
            background: #157dbe;
            box-sizing: border-box;
            border: 2px solid #ffffff;
            box-shadow: inset 0px 0px 20px 0px #ffffff;
        }

        &-item {
            cursor: pointer;
            margin-bottom: 20px;
            width: 760px;
            height: 164px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            background: #009dff;
            &-line {
                background: #2457af;
                width: 1px;
                height: 54px;
                margin: 0 10px;
            }
            &-num {
                color: #ffffff;
                overflow: hidden;
                width: 100px;
                &-label {
                    font-size: 24px;
                    margin-bottom: 10px;
                    opacity: 0.8;
                }
                &-value {
                    margin-top: 14px;
                    font-weight: bold;
                    font-size: 36px;
                    line-height: 40px;
                    color: #ffffff;
                }
            }
            &-class {
                color: #ffffff;
                overflow: hidden;
                width: 216px;

                &-label {
                    font-size: 24px;
                    margin-bottom: 10px;
                    opacity: 0.8;
                }
                &-value {
                    margin-top: 14px;
                    font-weight: bold;
                    font-size: 36px;
                    line-height: 40px;
                    color: #ffffff;
                }
            }

            &-time {
                margin-left: 16px;

                color: #ffffff;
                overflow: hidden;

                &-label {
                    font-size: 24px;
                    margin-bottom: 10px;
                    opacity: 0.8;
                }
                &-value {
                    margin-top: 14px;
                    font-weight: bold;
                    font-size: 40px;
                    line-height: 40px;
                    color: #ffffff;
                }
            }
            &-date {
                margin-left: 16px;
                background: url("@/assets/images/examination-body-date-bg.png")
                    no-repeat;
                background-size: 100% 100%;
                width: 131px;
                height: 118px;
                overflow: hidden;
                &-week {
                    margin: 18px 0 0 18px;
                    font-size: 24px;
                    line-height: 26px;
                    color: #333;
                }
                &-day {
                    margin: 14px 0 0 4px;
                    font-size: 40px;
                    color: #ff9a00;
                    font-weight: boild;
                }
            }
        }
    }
    &-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        &-name {
            display: flex;
            align-items: center;
            img {
                width: 60px;
                height: 46px;
            }
            div {
                margin-left: 20px;
                font-size: 44px;
                line-height: 58px;
                color: #ffffff;
            }
        }
        &-confirm {
            cursor: pointer;
            width: 198px;
            height: 70px;
            border-radius: 10px;
            display: flex;
            color: #ffffff;
            font-size: 36px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(
                289deg,
                #3f17b1 0%,
                #3f17b1 0%,
                #a352ff 35%,
                #3842ff 65%,
                #00ceff 100%
            );
            &:hover {
                opacity: 0.7;
            }
        }
    }
}
.grade {
    width: 200px;
    padding-left: 30px;
    margin-top: 80px;
    &-item {
        cursor: pointer;
        width: 100%;
        display: flex;
        justify-content: center;
        font-family: DingTalk JinBuTi;
        font-size: 38px;
        font-weight: normal;
        line-height: 58px;
        font-variation-settings: "opsz" auto;
        font-feature-settings: "kern" on;
        color: #a0d4ee;
    }
}
</style>

